﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using JEng_Mark_1.GameComponents;


namespace JEng_Mark_1.Managers
{
    public class JEngineManager : JEng
    {
        private static Game _game;

        /// <summary>
        /// The XNA Game object
        /// </summary>
        public static Game Game { get { return _game; } set { _game = value; } }

        public JEngineManager()
            : base("Engine","Content/Lua/game.lua")
        {
        }

        /// <summary>
        /// Constructor for winform based engine
        /// </summary>
        /// <param name="drawSurface">Form surface to draw too</param>
        public JEngineManager(IntPtr drawSurface) : base(drawSurface) { }

        protected override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);

            //display the fps in the window title
            this.Window.Title = FpsCounter.FPS.ToString();
        }
    }
}
